package com.chance.cc.crawler.prod.command.script.news.kr36;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.prod.command.job.domain.news.kr36.Kr36ArticleRealtimeCrawlerScheduleJob;

public class Kr36ArticleCrawlerScript {
    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217",9599);//mysql服务器地址

    public static void main(String[] args) {

        publishKr36ArticleCrawlerNodeScript();
    }

    private static void publishKr36ArticleCrawlerNodeScript() {
        HttpPage httpPage = scriptCommand.publishCrawlerScript2Consul(Kr36ArticleRealtimeCrawlerScheduleJob.domain);
        System.out.println("发布采集脚本：" + httpPage.getRawText());
    }
}
